package com.example.demo.common.serviceImpl;

import com.example.demo.common.entity.Defect;
import com.example.demo.common.entity.Sample;
import com.example.demo.common.mapper.DefectMapper;
import com.example.demo.common.service.DefectService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class DefectServiceImpl implements DefectService {
    @Resource
    DefectMapper defectMapper;
    @Override
    public void saveDefect(Defect defect){
        defectMapper.insert(defect);
    }
    @Override
    public void updateDefect(Defect defect){
        defectMapper.updateById(defect);
    }
    @Override
    public void deleteById(Long id){
        defectMapper.deleteById(id);
    }
}
